package com.lck.blogmanager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lck.blogmanager.entity.AdminEntity;
import com.lck.blogmanager.req.AdminLoginReq;
import com.lck.blogmanager.req.UpdateAdminInfoReq;

public interface AdminService extends IService<AdminEntity> {

    /**
     * 管理员登录
     * @param req
     * @return
     */
    String adminLogin(AdminLoginReq req);

    /**
     * 管理员重置密码
     */
    void resetPassword();

    /**
     * 管理员更改密码
     * @param req
     */
    void updateInfo(UpdateAdminInfoReq req);

    AdminEntity adminInfo();

}
